<%= render 'good_job/shared/filter', title: t("good_job.shared.navbar.jobs"), filter: @filter %>
<%= render 'good_job/shared/chart_container', chart_data: GoodJob::ScheduledByQueueChart.new(@filter).data %>

<div data-live-poll-region="jobs-table">
  <%= render 'good_job/jobs/table', jobs: @filter.records, filter: @filter %>
  <% if @filter.records.present? %>
    <nav aria-label="<%= t ".job_pagination" %>" class="mt-3">
      <ul class="pagination">
        <li class="page-item">
          <%= link_to(@filter.next_page_params, class: "page-link") do %>
            <%= t ".older_jobs" %> <span aria-hidden="true">&raquo;</span>
          <% end %>
        </li>
      </ul>
    </nav>
  <% end %>
</div>
